package rladidxo.basic;

public class J05_patterns {
public static void main(String[] args) {
	System.out.println("pattern1");
	int a,b;
	a=1; b=1;
	while(b<7){
	switch(b){
	case 1:System.out.println(a+0);break;
	case 2:System.out.println((a+1)+"	"+(a+1));break;
	case 3:System.out.println((a+2)+"	"+(a+1)+"	"+(a+2));break;
	case 4:System.out.println((a+3)+"	"+(a+1)+"	"+(a+2)+"	"+(a+3));break;
	case 5:System.out.println((a+4)+"	"+(a+1)+"	"+(a+2)+"	"+(a+3)+"	"+(a+4));break;
	case 6:System.out.println((a+5)+"	"+(a+1)+"	"+(a+2)+"	"+(a+3)+"	"+(a+4)+"	"+(a+5));break;
	}b++;
	}
	System.out.println("--------------------------------------------------");
	a=1; b=1;
	while(b<7){
		switch(b){
		case 6:System.out.println(a+0);break;
		case 5:System.out.println((a+1)+"	"+(a+1));break;
		case 4:System.out.println((a+2)+"	"+(a+1)+"	"+(a+2));break;
		case 3:System.out.println((a+3)+"	"+(a+1)+"	"+(a+2)+"	"+(a+3));break;
		case 2:System.out.println((a+4)+"	"+(a+1)+"	"+(a+2)+"	"+(a+3)+"	"+(a+4));break;
		case 1:System.out.println((a+5)+"	"+(a+1)+"	"+(a+2)+"	"+(a+3)+"	"+(a+4)+"	"+(a+5));break;
		}b++;
	}
	System.out.println("--------------------------------------------------");
	
	a=1; b=1;
	while(b<7){
		switch(b){
		case 1:System.out.println("	"+"	"+"	"+"	"+"	"+(a+0));break;
		case 2:System.out.println("	"+"	"+"	"+"	"+(a+1)+"	"+(a+0));break;
		case 3:System.out.println("	"+"	"+"	"+(a+2)+"	"+(a+1)+"	"+(a+0));break;
		case 4:System.out.println("	"+"	"+(a+3)+"	"+(a+2)+"	"+(a+1)+"	"+(a+0));break;
		case 5:System.out.println("	"+(a+4)+"	"+(a+3)+"	"+(a+2)+"	"+(a+1)+"	"+(a+0));break;
		case 6:System.out.println((a+5)+"	"+(a+4)+"	"+(a+3)+"	"+(a+2)+"	"+(a+1)+"	"+(a+0));break;
		}b++;
	}
	System.out.println("--------------------------------------------------");
	
	a=1; b=1;
	while(b<7){
		switch(b){
		case 6:System.out.println("	"+"	"+"	"+"	"+"	"+(a+0));break;
		case 5:System.out.println("	"+"	"+"	"+"	"+(a+0)+"	"+(a+1));break;
		case 4:System.out.println("	"+"	"+"	"+(a+0)+"	"+(a+1)+"	"+(a+2));break;
		case 3:System.out.println("	"+"	"+(a+0)+"	"+(a+1)+"	"+(a+2)+"	"+(a+3));break;
		case 2:System.out.println("	"+(a+0)+"	"+(a+1)+"	"+(a+2)+"	"+(a+3)+"	"+(a+4));break;
		case 1:System.out.println((a+0)+"	"+(a+1)+"	"+(a+2)+"	"+(a+3)+"	"+(a+4)+"	"+(a+5));break;
		}b++;
	}
	System.out.println("--------------------------------------------------");
			
		}
	
}

